package note;

public class TextAndImageNote extends TextNote {
    private String url;

    public TextAndImageNote() {
        super();
        this.url = "";
    }

    public TextAndImageNote(String text) {
        super(text);
        this.url = "";
    }

    public TextAndImageNote(String text, String url) {
        super(text);
        this.url = url;
    }

    public void setURL(String url) {
        this.url = url;
    }

    public String getURL() {
        return url;
    }

    @Override
    public void printContent() {
        System.out.println("Text and Image Note" + getID() + ": " + getText() + ", " + getURL());
    }

    
}
